package com.hhf.ftp.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class FtpFactory {
    @Autowired
    private Map<String, FtpService> ftpServiceMap;

    public FtpService getFtpService(String name){
        return ftpServiceMap.get(name);
    }
}
